package com.csy.commons.core.domain;

/**
 * 响应状态码枚举类
 * @Auther: sunxx
 * @Date: 2023/12/30 - 12 - 30 - 17:25
 * @Description: com.sxx.ajcommunity.common.core.domain
 * @version: 1.0
 */
public enum ResultCode {
    SUCCESS("200","操作成功"),
    ERROR("500","操作失败");

    //自定义状态码
    private String code;

    //自定义描述
    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
